<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 14:56:21
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Role/rights_2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:212737503051611895a8da58-24971881%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a7ec755dd95470b6fd4e9c0a31421a20803494b' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Role/rights_2.tpl',
      1 => 1364183643,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '212737503051611895a8da58-24971881',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'node' => 0,
    'item' => 0,
    'access' => 0,
    'lang' => 0,
    'item2' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51611895b72c6',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51611895b72c6')) {function content_51611895b72c6($_smarty_tpl) {?><div class="div_main">
	<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['node']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
		<div id="first_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
			<div class="div_role_operate">
				<p class="role_operate_p">
					<input id="parent_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" type="checkbox" value="1" <?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['item']->value['id']]){?>checked<?php }?> onclick="selectCheckbox(this,'first_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
')">
					<?php if (C('show_data_right')==1){?>
         			 		<select onchange="setSelectValue(this,'first_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
')">
         			 		<option value="1"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</option>
         			 		<option value="2"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
-<?php echo $_smarty_tpl->tpl_vars['lang']->value['own_department'];?>
</option>
         			 		<option value="3"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
-<?php echo $_smarty_tpl->tpl_vars['lang']->value['ownself'];?>
</option>
         			 		</select>
        		 	<?php }else{ ?>
        		 		<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>

        		 	<?php }?>
			    </p>
			    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_smarty_tpl->tpl_vars['sub_caption'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item']->value['sub']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
 $_smarty_tpl->tpl_vars['sub_caption']->value = $_smarty_tpl->tpl_vars['row']->key;
?>
			    	<dl class="role_add_two" id="second_<?php echo $_smarty_tpl->tpl_vars['item2']->value['id'];?>
">
			    		<dd>
			    			<input name="flow[<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
]" id="sub_<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" type="checkbox" value="1" parent="first_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" onclick="setParentCheckbox(this)" <?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['row']->value['id']]){?>checked<?php }?>><?php if (C('show_data_right')==1){?>
				    		<select name="data_rights[<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
]">
         			 		<option value="1" <?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['row']->value['id']]['data_rights']==1){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
</option>
         			 		<option value="2" <?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['row']->value['id']]['data_rights']==2){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
-<?php echo $_smarty_tpl->tpl_vars['lang']->value['own_department'];?>
</option>
         			 		<option value="3" <?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['row']->value['id']]['data_rights']==3){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
-<?php echo $_smarty_tpl->tpl_vars['lang']->value['ownself'];?>
</option>
         			 		</select>
				    	<?php }else{ ?>
				    		<?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
 
				    	<?php }?>
			    		</dd>	
				    </dl>
				<?php } ?>
			</div>
		</div>
	<?php } ?>
</div><?php }} ?>